<template>
  <n-config-provider :theme-overrides="themeOverrides">
    <n-dialog-provider>
      <n-message-provider>
        <n-modal-provider>
          <n-notification-provider>
            <router-view />
          </n-notification-provider>
        </n-modal-provider>
      </n-message-provider>
    </n-dialog-provider>
  </n-config-provider>
</template>

<script setup>
import { NModalProvider, NDialogProvider, NMessageProvider, NConfigProvider, NNotificationProvider } from 'naive-ui';
import { lighten } from "@/utils/utils"

const appTheme = '#801431'
const lightenStr = lighten(appTheme, 6)

/**
  * @type import('naive-ui').GlobalThemeOverrides
  */
const themeOverrides = {
  common: {
    primaryColor: appTheme,
    primaryColorHover: lightenStr,
    primaryColorPressed: lightenStr,
    primaryColorSuppl: appTheme,
  }
}
</script>

<style lang="less">
@import url(./style.less);
</style>